<?php
/*
 * @Descripttion: 
 * @version: 
 * @Author: Eugene
 * @Date: 2023-06-28 17:18:34
 * @LastEditors: Andy
 * @LastEditTime: 2023-06-28 17:19:51
 */

namespace app\common\validate\requirement;

use think\Validate;

class Lists extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'type' => 'require|gt:0',
        'title' => 'require',
        'mobile' => 'regex:1[3-9]\d{9}',
        'price' => 'require|gt:0',
        'address' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'type.require' => '请选择竞价方式',
        'title.require' => '标题不能为空',
        'mobile.regex' => '请填写正确手机号',
        'price.require' => '请输入价格',
        'address.require' => '请填写详细地址',
        'longitude.require' => '经纬度错误',
        'latitude.require' => '经纬度错误',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
